﻿@using com.hyrentals.data
@using com.hyrentals.webportal.helpers
@using com.hyrentals.webportal.Config

@model com.hyrentals.data.Photo
@{
    string photoListItemId = "J_Photo" + Model.Id;
}
           
<li id="@photoListItemId">
    <a href="javascript:;" style="cursor: default;"><img src="@ImageHelper.GeneratePhotoUrl(Model.Id)" width="@ImageConfig.IMAGE_WIDTH_PHOTO" height="@ImageConfig.IMAGE_HEIGHT_PHOTO"/></a>
    <button class="delete-photo-btn" onclick="@string.Format("func.deletePhoto('{0}', '{1}', this); return false;", Model.Id, Model.RVId)" data-photo-listitem-id="@photoListItemId"><i class="icon icon-trash"></i></button>
    <div class="description">
        <textarea class="input-textarea" onchange="@string.Format("func.updatePhoto('{0}', '{1}', this); return false;", Model.Id, Model.RVId)" placeholder="What are the highlights of this photo?" rows="3" name="description">@Model.Description</textarea>
    </div>
</li>